package com.guochu.common.dbconnect;

public class DatabaseContextHolder {
    private static final ThreadLocal<DatabaseInfo> contextHolder = new ThreadLocal<>();

    public static void setDatabaseInfo(DatabaseInfo databaseInfo) {
        contextHolder.set(databaseInfo);
    }

    public static DatabaseInfo getDatabaseInfo() {
        return contextHolder.get();
    }
}
